import Vue from 'vue'
import Vuex from 'vuex'
import use from './modules/use'
import  createPersistedState  from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  plugins:[
    createPersistedState({
      key:'hm--vuex-token',
      storage:window.localStorage,
      paths:['use.token']
    })
  ],
  modules: {
    use
  }
})
